<div class="setgroup">
  <dl class="setform clear">
    <dt><label for="user_login">Login</label></dt>
    <dd><%= f.text_field :login %></dd>
	<p class="hint">Your login will also be the url of your blog (http://blogs.remedi.es/yourlogin)</p>
    <dt><label for="user_filter">What markup type do you prefer?</label></dt>
    <dd>
      <select name="user[filter]" id="user_filter">
        <%= options_for_select(filter_options, @user.filter) %>
      </select>
    </dd>
	<% fields_for :section, @user.section do |section_fields| %>
    <dt><%#= section_fields.label_for  :name, 'text' => "Blog Title" %>
	<label for="section_name">Blog Title</label> 
	</dt>
    <dd><%= section_fields.text_field :name %></dd>
	<p class="hint">For example, Steve's Homeopathy Blog'</p>
    <% end %>
  </dl>
</div>

<div class="setgroup">
  <% unless create %>
  <h3>Change your password</h3>
  <p class="hint">Leave this blank if you don't want to change your password.</p>
  <% end %>
  <dl class="setform">
	<dt><label for="user_email">Email address</label></dt>
	<dd><%= f.text_field :email %></dd>
    <dt><%= f.label_for      :password %></dt>
    <dd><%= f.password_field :password %></dd>
    <dt><%= f.label_for      :password_confirmation %></dt>
    <dd><%= f.password_field :password_confirmation %></dd>
  </dl>
</div>

<p class="btns"><%= submit_tag(@user.new_record? ? 'Create Blog' : 'Save my profile') %></p>
